<!--
 * @Descripttion: 
 * @version: 1.0
 * @Author: 00
 * @Date: 2020-08-26 19:51:08
 * @LastEditors: 000
 * @LastEditTime: 2020-08-27 09:02:30
-->
<template>
  <div>
    <h3>阅卷</h3>
    <div class="room">
      <el-card class="left-card"></el-card>
      <el-card class="right-card">
        <h4>得分</h4>
        <Slider :min="0" :max="100" v-model="per"></Slider>
        <el-button @click="tan" type="primary">确认</el-button>
      </el-card>
    </div>
  </div>
</template>

<script>
import Slider from './slider'
export default {
  data() {
    return {
      disabledflag: false,
      per: 50
    }
  },
  components: {
    Slider
  },
  methods: {
    tan() {
      this.$confirm(`分数值：${this.per}`, '确认提交阅卷结果?', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$message({
          type: 'success',
          message: '已提交成功!'
        })
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消'
        })
      })
    }
  }
}
</script>

<style>
h3 {
  margin-left: 30px;
}
.room {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.left-card {
  width: 55%;
  height: 200px;
  margin-left: 30px;
  border-radius: 15px;
}
.right-card {
  width: 30%;
  height: 200px;
  margin-left: 10px;
  border-radius: 15px;
}
.isok {
  margin-top: 20px;
  margin-left: 20px;
}
</style>